import EmptyLayout from '@/layout/EmptyLayout'
// 文件预览路由
var fileViewRouter = {
  path: '/fileView',
  name: 'fileView',
  component: EmptyLayout,
  redirect: '/fileView/excel',
  hidden: true,
  children: [{
    path: 'excel/:id',
    name: 'fileViewExcel',
    component: () => import('@/components/file/view/excel')
  }, {
    path: 'video/:id/:title',
    name: 'fileViewVideo',
    component: () => import('@/components/file/view/video')
  }, {
    path: 'images/:id',
    name: 'fileViewImages',
    component: () => import('@/components/file/view/images')
  }, {
    path: 'image/:id',
    name: 'fileViewImage',
    component: () => import('@/components/file/view/image')
  }, {
    path: 'pdf/:id',
    name: 'fileViewPdf',
    component: () => import('@/components/file/view/pdf')
  }, {
    path: 'notSupport/:id',
    name: 'fileViewNotSupport',
    component: () => import('@/components/file/view/notSupport')
  }]
}
export default fileViewRouter
